projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5100a5e
)
VT-d: only scan secondary functions on multi-function devices
author
Keir Fraser
<keir@xen.org>
Fri, 29 Oct 2010 17:06:17 +0000
(18:06 +0100)
committer
Keir Fraser
<keir@xen.org>
Fri, 29 Oct 2010 17:06:17 +0000
(18:06 +0100)
Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/drivers/passthrough/pci.c
patch
|
blob
|
history
diff --git
a/xen/drivers/passthrough/pci.c
b/xen/drivers/passthrough/pci.c
index d6d833142bc6842512a11e9eeb52561cb61edf64..0a159804f1cb392be218024dafd4f7f68e5f0a5d 100644
(file)
--- a/
xen/drivers/passthrough/pci.c
+++ b/
xen/drivers/passthrough/pci.c
@@
-445,6
+445,10
@@
int __init scan_pci_devices(void)
spin_unlock(&pcidevs_lock);
return -EINVAL;
}
+
+ if ( !func && !(pci_conf_read8(bus, dev, func,
+ PCI_HEADER_TYPE) & 0x80) )
+ break;
}
}
}